package com.chinairi.mall.dao;

import com.chinairi.mall.model.OrderServiceStorageGoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gsl
 * @since 2020-10-15
 */
public interface OrderServiceStorageGoodsMapper extends BaseMapper<OrderServiceStorageGoods> {
    /**
     * 根据服务订单id获取订单下的商品信息
     * @param orderId
     * @return
     */
    List<OrderServiceStorageGoods> getOrderServiceStorageGoodsByOrderId(String orderId);

    /**
     * 根据服务订单id删除
     * @param serviceId
     */
    void deleteByServiceId(String serviceId);
}
